package com.ccx.coachsite.weibo.auth2.vo;


import java.io.Serializable;

/**
 * 本地登陆的用户信息
 * @author zhuchenghua
 */
public class LoginUser implements Serializable{

	private static final long serialVersionUID = -6725541509481103247L;

	/**表记录唯一标识*/
	private long id;
	
	/**微博用户的ID*/
	private String uid;
	
	/**昵称*/
	private String screenName;
	
	/**微博授权密钥*/
	private String accessToken;
	
	/**登陆帐号*/
	private String account;
	
	/**登陆桌面的包名，区分是哪个桌面登陆的*/
	private String packageName;
	
	/**登陆时间*/
	private long loginTime;
	
	/**登陆用户的详细信息*/
	private User userDetailInfo;
	
	public LoginUser(){}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getUid() {
		return uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	public String getScreenName() {
		return screenName;
	}

	public void setScreenName(String screenName) {
		this.screenName = screenName;
	}

	public String getAccessToke() {
		return accessToken;
	}

	public void setAccessToke(String accessToken) {
		this.accessToken = accessToken;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getPackageName() {
		return packageName;
	}

	public void setPackageName(String packageName) {
		this.packageName = packageName;
	}

	public long getLoginTime() {
		return loginTime;
	}

	public void setLoginTime(long loginTime) {
		this.loginTime = loginTime;
	}

	public User getUserDetailInfo() {
		return userDetailInfo;
	}

	public void setUserDetailInfo(User userDetailInfo) {
		this.userDetailInfo = userDetailInfo;
		this.screenName=userDetailInfo.getScreenName();
	}
	
	
	
}
